package com.legsem.legstar.cci;

import javax.resource.spi.ConnectionRequestInfo;


/**
 * Allows client to provide additional connection properties to be used to
 * create a connection or reuse one from the pool.
 * 
 */
public class LegStarConnectionRequestInfo implements ConnectionRequestInfo {

    private LegStarConnectionSpec legStarConnectionSpec;

    public LegStarConnectionRequestInfo(
            LegStarConnectionSpec legStarConnectionSpec) {
        this.legStarConnectionSpec = legStarConnectionSpec;
    }

    public LegStarConnectionSpec getLegStarConnectionSpec() {
        return legStarConnectionSpec;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("LegStarConnectionRequestInfo [legStarConnectionSpec=");
        builder.append(legStarConnectionSpec);
        builder.append("]");
        return builder.toString();
    }

}
